<template>
  <view class="agreement-container">
    <view class="agreement-header">
      <text class="title">Privacy Policy</text>
    </view>
    
    <view class="agreement-content">
      <scroll-view scroll-y="true" class="content-scroll">
        <text class="content-text">{{ privacyContent }}</text>
      </scroll-view>
    </view>
    
    <view class="agreement-footer">
      <button class="back-button" @click="goBack">Back</button>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      privacyContent: `
PRIVACY POLICY

Last updated: ${new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })}

This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the Service and tells You about Your privacy rights and how the law protects You.

1. INTERPRETATION AND DEFINITIONS

Interpretation
The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

Definitions
For the purposes of this Privacy Policy:
- Account means a unique account created for You to access our Service or parts of our Service.
- Company (referred to as either "the Company", "We", "Us" or "Our" in this Agreement) refers to BabaHabibi.
- Cookies are small files that are placed on Your computer, mobile device or any other device by a website, containing the details of Your browsing history on that website among its many uses.
- Country refers to: [Your Country]
- Device means any device that can access the Service such as a computer, a cellphone or a digital tablet.
- Personal Data is any information that relates to an identified or identifiable individual.
- Service refers to the Website.
- Service Provider means any natural or legal person who processes the data on behalf of the Company. It refers to third-party companies or individuals employed by the Company to facilitate the Service, to provide the Service on behalf of the Company, to perform services related to the Service or to assist the Company in analyzing how the Service is used.
- Usage Data refers to data collected automatically, either generated by the use of the Service or from the Service infrastructure itself (for example, the duration of a page visit).
- You means the individual accessing or using the Service, or the company, or other legal entity on behalf of which such individual is accessing or using the Service, as applicable.

2. COLLECTING AND USING YOUR PERSONAL DATA

Types of Data Collected
Personal Data
While using Our Service, We may ask You to provide Us with certain personally identifiable information that can be used to contact or identify You. Personally identifiable information may include, but is not limited to:
- Phone number
- Usage Data

Usage Data
Usage Data is collected automatically when using the Service.
Usage Data may include information such as Your Device's Internet Protocol address (e.g. IP address), browser type, browser version, the pages of our Service that You visit, the time and date of Your visit, the time spent on those pages, unique device identifiers and other diagnostic data.

3. USE OF YOUR PERSONAL DATA

The Company may use Personal Data for the following purposes:
- To provide and maintain our Service
- To manage Your Account
- To contact You by email, telephone calls, SMS, or other equivalent forms of electronic communication
- To provide You with news, special offers and general information about other goods, services and events which we offer that are similar to those that you have already purchased or enquired about unless You have opted not to receive such information

4. DISCLOSURE OF YOUR PERSONAL DATA

We may share Your personal information in the following situations:
- With Service Providers
- For business transfers
- With Affiliates
- With business partners
- With other users

5. SECURITY OF YOUR PERSONAL DATA

The security of Your Personal Data is important to Us, but remember that no method of transmission over the Internet, or method of electronic storage is 100% secure.

6. CHILDREN'S PRIVACY

Our Service does not address anyone under the age of 13. We do not knowingly collect personally identifiable information from anyone under the age of 13.

7. CHANGES TO THIS PRIVACY POLICY

We may update Our Privacy Policy from time to time. We will notify You of any changes by posting the new Privacy Policy on this page.

8. CONTACT US

If you have any questions about this Privacy Policy, You can contact us:
By email: privacy@babahabibi.com
      `
    };
  },
  
  methods: {
    goBack() {
      uni.navigateBack();
    }
  }
};
</script>

<style scoped>
/* 使用与用户协议相同的样式 */
.agreement-container {
  padding: 20rpx;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.agreement-header {
  text-align: center;
  padding: 20rpx 0;
  border-bottom: 2rpx solid #eee;
}

.title {
  font-size: 42rpx;
  font-weight: bold;
  color: #333;
}

.agreement-content {
  flex: 1;
  margin: 20rpx 0;
}

.content-scroll {
  height: 100%;
}

.content-text {
  font-size: 28rpx;
  line-height: 42rpx;
  color: #666;
  white-space: pre-line;
}

.agreement-footer {
  padding: 20rpx 0;
  border-top: 2rpx solid #eee;
}

.back-button {
  background-color: #FA751F;
  color: white;
  border-radius: 50rpx;
  height: 80rpx;
  line-height: 80rpx;
  font-size: 32rpx;
}
</style>